package com.foreverwin.mes.so.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import java.io.Serializable;
import com.baomidou.mybatisplus.enums.IdType;

/**
 * <p>
 * 计划订单
 * </p>
 *
 * @author Ervin Chen
 * @since 2020-03-26
 */
@TableName("Z_PLANNED_ORDER")
public class PlannedOrder extends Model<PlannedOrder> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
   @TableId(value = "HANDLE", type = IdType.INPUT)
   private String handle;
    /**
     * 站点
     */
   @TableField("SITE")
   private String site;
    /**
     * 计划订单号
     */
   @TableField("PLANNED_ORDER")
   private String plannedOrder;
    /**
     * 状态标志符
     */
   @TableField("QUANTITY_IS_FIXED")
   private String quantityIsFixed;
    /**
     * 计划物料号
     */
   @TableField("ITEM")
   private String item;
    /**
     * 数量
     */
   @TableField("QTY_TO_BUILD")
   private Double qtyToBuild;
    /**
     * 单位
     */
   @TableField("UNIT_OF_MEASURE")
   private String unitOfMeasure;
    /**
     * 计划开始时间
     */
   @TableField("PLANNED_START_DATE")
   private Date plannedStartDate;
    /**
     * 计划完成时间
     */
   @TableField("PLANNED_COMPLETE_DATE")
   private Date plannedCompleteDate;
    /**
     * 成本收集器单号
     */
   @TableField("COST_COLLECTOR")
   private String costCollector;


   public String getHandle() {
      return handle;
   }

   public void setHandle(String handle) {
      this.handle = handle;
   }

   public String getSite() {
      return site;
   }

   public void setSite(String site) {
      this.site = site;
   }

   public String getPlannedOrder() {
      return plannedOrder;
   }

   public void setPlannedOrder(String plannedOrder) {
      this.plannedOrder = plannedOrder;
   }

   public String getQuantityIsFixed() {
      return quantityIsFixed;
   }

   public void setQuantityIsFixed(String quantityIsFixed) {
      this.quantityIsFixed = quantityIsFixed;
   }

   public String getItem() {
      return item;
   }

   public void setItem(String item) {
      this.item = item;
   }

   public Double getQtyToBuild() {
      return qtyToBuild;
   }

   public void setQtyToBuild(Double qtyToBuild) {
      this.qtyToBuild = qtyToBuild;
   }

   public String getUnitOfMeasure() {
      return unitOfMeasure;
   }

   public void setUnitOfMeasure(String unitOfMeasure) {
      this.unitOfMeasure = unitOfMeasure;
   }

   public Date getPlannedStartDate() {
      return plannedStartDate;
   }

   public void setPlannedStartDate(Date plannedStartDate) {
      this.plannedStartDate = plannedStartDate;
   }

   public Date getPlannedCompleteDate() {
      return plannedCompleteDate;
   }

   public void setPlannedCompleteDate(Date plannedCompleteDate) {
      this.plannedCompleteDate = plannedCompleteDate;
   }

   public String getCostCollector() {
      return costCollector;
   }

   public void setCostCollector(String costCollector) {
      this.costCollector = costCollector;
   }

   public static final String HANDLE = "HANDLE";

   public static final String SITE = "SITE";

   public static final String PLANNED_ORDER = "PLANNED_ORDER";

   public static final String QUANTITY_IS_FIXED = "QUANTITY_IS_FIXED";

   public static final String ITEM = "ITEM";

   public static final String QTY_TO_BUILD = "QTY_TO_BUILD";

   public static final String UNIT_OF_MEASURE = "UNIT_OF_MEASURE";

   public static final String PLANNED_START_DATE = "PLANNED_START_DATE";

   public static final String PLANNED_COMPLETE_DATE = "PLANNED_COMPLETE_DATE";

   public static final String COST_COLLECTOR = "COST_COLLECTOR";

   @Override
   protected Serializable pkVal() {
      return this.handle;
   }

   @Override
   public String toString() {
      return "PlannedOrder{" +
         "handle = " + handle +
         ", site = " + site +
         ", plannedOrder = " + plannedOrder +
         ", quantityIsFixed = " + quantityIsFixed +
         ", item = " + item +
         ", qtyToBuild = " + qtyToBuild +
         ", unitOfMeasure = " + unitOfMeasure +
         ", plannedStartDate = " + plannedStartDate +
         ", plannedCompleteDate = " + plannedCompleteDate +
         ", costCollector = " + costCollector +
         "}";
   }
}